home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Visual Basic Toolbox
/
Visual Basic Toolbox (P.I.E.)(1996).ISO
/
buttons
/
selvb25
/
seframes.frm
< prev
next >
Wrap
Text File
|
1995-12-17
|
15KB
|
496 lines
VERSION 2.00
Begin Form FrameDemo
BackColor = &H00C0C0C0&
BorderStyle = 1 'Fixed Single
Caption = "Frame & Background Demo"
ClientHeight = 4410
ClientLeft = 1635
ClientTop = 4470
ClientWidth = 8430
Height = 4770
Left = 1575
LinkTopic = "Form2"
MaxButton = 0 'False
MDIChild = -1 'True
MinButton = 0 'False
ScaleHeight = 4410
ScaleWidth = 8430
Top = 4170
Width = 8550
Begin HScrollBar HScroll1
Height = 240
Index = 1
Left = 4530
Max = 140
TabIndex = 2
Top = 1560
Width = 3285
End
Begin Frame Frame1
BackColor = &H00C0C0C0&
Caption = "Picture Properties"
Height = 1000
Left = 3540
TabIndex = 16
Top = 2130
Width = 4600
Begin OptionButton Option1
BackColor = &H00C0C0C0&
Caption = "FramePicture"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 225
Index = 0
Left = 300
TabIndex = 5
Top = 300
Value = -1 'True
Width = 1900
End
Begin OptionButton Option1
BackColor = &H00C0C0C0&
Caption = "BackgroundPicture"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 225
Index = 1
Left = 300
TabIndex = 6
Top = 540
Width = 1900
End
Begin PictureBox Image1
Height = 645
Index = 4
Left = 3780
Picture = SEFRAMES.FRX:0000
ScaleHeight = 41
ScaleMode = 3 'Pixel
ScaleWidth = 41
TabIndex = 7
Top = 210
Width = 645
End
Begin PictureBox Image1
Height = 645
Index = 2
Left = 3120
Picture = SEFRAMES.FRX:463A
ScaleHeight = 41
ScaleMode = 3 'Pixel
ScaleWidth = 41
TabIndex = 8
Top = 210
Width = 645
End
Begin PictureBox Image1
Height = 645
Index = 0
Left = 2460
Picture = SEFRAMES.FRX:8C14
ScaleHeight = 41
ScaleMode = 3 'Pixel
ScaleWidth = 41
TabIndex = 9
Top = 210
Width = 645
End
End
Begin Frame Frame4
BackColor = &H00C0C0C0&
Caption = "Color Properties"
Height = 1000
Left = 3540
TabIndex = 21
Top = 3180
Width = 4600
Begin OptionButton Option3
BackColor = &H00C0C0C0&
Caption = "BackgroundColor"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Index = 1
Left = 330
TabIndex = 10
Top = 540
Width = 1900
End
Begin OptionButton Option3
BackColor = &H00C0C0C0&
Caption = "FrameColor"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Index = 0
Left = 330
TabIndex = 11
Top = 300
Value = -1 'True
Width = 1900
End
Begin Label HColors
BackColor = &H00FFFF00&
Height = 225
Index = 9
Left = 3510
TabIndex = 28
Top = 330
Width = 225
End
Begin Label HColors
BackColor = &H000080FF&
Height = 225
Index = 4
Left = 2550
TabIndex = 12
Top = 570
Width = 225
End
Begin Label HColors
BackColor = &H00000000&
Height = 225
Index = 0
Left = 2550
TabIndex = 17
Top = 330
Width = 225
End
Begin Label HColors
BackColor = &H00808080&
Height = 225
Index = 5
Left = 2790
TabIndex = 18
Top = 570
Width = 225
End
Begin Label HColors
BackColor = &H00FFFFFF&
Height = 225
Index = 1
Left = 2790
TabIndex = 19
Top = 330
Width = 225
End
Begin Label HColors
BackColor = &H000000FF&
Height = 225
Index = 6
Left = 3030
TabIndex = 20
Top = 570
Width = 225
End
Begin Label HColors
BackColor = &H0000FF00&
Height = 225
Index = 2
Left = 3030
TabIndex = 25
Top = 330
Width = 225
End
Begin Label HColors
BackColor = &H0000FFFF&
Height = 225
Index = 7
Left = 3270
TabIndex = 24
Top = 570
Width = 225
End
Begin Label HColors
BackColor = &H00FF0000&
Height = 225
Index = 3
Left = 3270
TabIndex = 23
Top = 330
Width = 225
End
Begin Label HColors
BackColor = &H00FF00FF&
Height = 225
Index = 8
Left = 3510
TabIndex = 22
Top = 570
Width = 225
End
End
Begin Frame Frame2
BackColor = &H00C0C0C0&
Caption = "FrameStyle"
Height = 1095
Left = 3480
TabIndex = 13
Top = 0
Width = 1575
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "Rectangle"
Height = 225
Index = 2
Left = 210
TabIndex = 4
Top = 750
Width = 1245
End
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "Circle"
Height = 225
Index = 1
Left = 210
TabIndex = 15
Top = 510
Width = 1095
End
Begin OptionButton Option2
BackColor = &H00C0C0C0&
Caption = "None"
Height = 225
Index = 0
Left = 210
TabIndex = 14
Top = 270
Width = 1125
End
End
Begin HScrollBar HScroll1
Height = 240
Index = 0
Left = 4530
Max = 140
TabIndex = 0
Top = 1320
Width = 3285
End
Begin SELECTOR Selector1
Angle = 270
AutoAlign = 0 'False
AutoAngle = -1 'True
AutoAngleConfine= -1 'True
AutoOffset = -1 'True
AutoOffsetDistance= 0
AutoOffsetStyle = 0 ' 0 - Circular
AutoRadius = 0.8
AutoStartAngle = 210
AutoStopAngle = 330
AVersion = 0
BackgroundColor = &H00C0C0C0&
BevelInner = 1 ' 1 - Raised
BevelOuter = 2 ' 2 - Inset
BevelWidth = 2
BorderType = 0 ' 0 - None
BorderWidth = 2
FontID = 0
FrameColor = &H00000000&
FrameScaleX = 1.1
FrameScaleY = 1.1
FrameStyle = 1 ' 1 - Circle
Height = 2955
Highlight = 0 'False
HighlightColor = &H00000000&
KnobColor = &H00808080&
KnobOriginX = 0
KnobOriginY = 0
KnobRadius = 0.6
KnobStyle = 2 ' 2 - Complex
KnobUserDefined = ""
Left = 360
LineDisplay = 0 'False
LineInnerRadius = 0.4
LineThickness = 1
MarkUserDefined = ""
MouseControl = -1 'True
OutlineAlign = 0 ' 0 - Left
OutlineColor = &H00000000&
OutlineTitle = ""
OutlineWidth = 0
Radius = 0
TabIndex = 27
TabStop = 0 'False
Top = 1260
Value = 1
Width = 2925
XScale = 0
YScale = 0
ZLoad = SEFRAMES.FRX:D1EE
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 1
Left = 7860
TabIndex = 3
Top = 1560
Width = 435
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "FrameScaleY:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Index = 1
Left = 3510
TabIndex = 29
Top = 1560
Width = 990
End
Begin Label Label1
Alignment = 1 'Right Justify
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = "FrameScaleX:"
FontBold = 0 'False
FontItalic = 0 'False
FontName = "MS Sans Serif"
FontSize = 8.25
FontStrikethru = 0 'False
FontUnderline = 0 'False
Height = 195
Index = 0
Left = 3510
TabIndex = 1
Top = 1320
Width = 990
End
Begin Label Label2
AutoSize = -1 'True
BackStyle = 0 'Transparent
Caption = " "
Height = 195
Index = 0
Left = 7860
TabIndex = 26
Top = 1320
Width = 435
End
End
Sub Form_Load ()
hscroll1(0) = selector1.FrameScaleX * 100
hscroll1(1) = selector1.FrameScaleY * 100
option2(selector1.FrameStyle) = True
End Sub
Sub HColors_Click (index As Integer)
If option3(0) Then
selector1.FrameColor = hcolors(index).BackColor
selector1.FramePicture = LoadPicture("")
Else
selector1.BackgroundColor = hcolors(index).BackColor
selector1.BackgroundPicture = LoadPicture("")
End If
End Sub
Sub HScroll1_Change (index As Integer)
Select Case index
Case 0
selector1.FrameScaleX = hscroll1(0) / 100
label2(0) = hscroll1(0) / 100
Case 1
selector1.FrameScaleY = hscroll1(1) / 100
label2(1) = hscroll1(1) / 100
End Select
End Sub
Sub HScroll1_Scroll (index As Integer)
Select Case index
Case 0
selector1.FrameScaleX = hscroll1(0) / 100
label2(0) = hscroll1(0) / 100
Case 1
selector1.FrameScaleY = hscroll1(1) / 100
label2(1) = hscroll1(1) / 100
End Select
End Sub
Sub Image1_Click (index As Integer)
If option1(0) Then
selector1.FramePicture = Image1(index).Picture
Else
selector1.BackgroundPicture = Image1(index).Picture
End If
End Sub
Sub Option2_Click (index As Integer)
selector1.FrameStyle = index
selector1 = index
Select Case index
Case 0
label1(0).Visible = False
hscroll1(0).Visible = False
label2(0).Visible = False
label1(1).Visible = False
hscroll1(1).Visible = False
label2(1).Visible = False
Case 1
label1(0).Visible = True
hscroll1(0).Visible = True
label2(0).Visible = True
label1(1).Visible = False
hscroll1(1).Visible = False
label2(1).Visible = False
Case 2
label1(0).Visible = True
hscroll1(0).Visible = True
label2(0).Visible = True
label1(1).Visible = True
hscroll1(1).Visible = True
label2(1).Visible = True
End Select
End Sub
Sub Selector1_Change ()
selector1.FrameStyle = selector1
option2(selector1) = True
End Sub